define(function(require,exports,module){
    var Base={
		mBaserSvrUrl:window.BaseServerUrl,
		localStorage:window.localStorage
	};
	
	function JlnRequest(){
		this.params={}
	}
	module.exports=UserProxy;
function UserProxy(){
	function userSubmit(request, success, ignoreError) {
	    var url = Base.mBaserSvrUrl+'/user';
        if (request.svr == null) request.svr = undefined;
	    if (request.token == null) request.token = undefined;
	    var content = JSON.stringify(request);
       
	    url = url + '?f=t&data=' + encodeURIComponent(content);
	    url = url + '&CallBack=?';
        $.getJSON(url,success);

	}

	function registerRq(union,loginName,password,nickName,phoneNumber,email,deviceCode,registerType,validCode,success,ignoreError){
        var request=new JlnRequest();
        request.func='register';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['loginName']=loginName;
		request.params['p']=password;
		request.params['nn']=nickName;
		request.params['phoneNumber']=phoneNumber;
		request.params['e']=email;
		request.params['dc']=deviceCode;
		request.params['rt']=registerType;
		request.params['validCode']=validCode;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.registerRequest=function(loginName,password,nickName,phoneNumber,email,deviceCode,registerType,validCode,success,ignoreError){
       var request= registerRq(true,loginName,password,nickName,phoneNumber,email,deviceCode,registerType,validCode,success,ignoreError);
       return request;
    }
	this.register=function(loginName,password,nickName,phoneNumber,email,deviceCode,registerType,validCode,success,ignoreError){
       var request= registerRq(false,loginName,password,nickName,phoneNumber,email,deviceCode,registerType,validCode,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function loginRq(union,loginName,password,success,ignoreError){
        var request=new JlnRequest();
        request.func='login';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['loginName']=loginName;
		request.params['p']=password;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.loginRequest=function(loginName,password,success,ignoreError){
       var request= loginRq(true,loginName,password,success,ignoreError);
       return request;
    }
	this.login=function(loginName,password,success,ignoreError){
       var request= loginRq(false,loginName,password,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function queryRegisteredUsersRq(union,token,startTime,endTime,page,countPerPage,success,ignoreError){
        var request=new JlnRequest();
        request.func='queryRegisteredUsers';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;
		request.params['st']=startTime;
		request.params['et']=endTime;
		request.params['p']=page;
		request.params['cpp']=countPerPage;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.queryRegisteredUsersRequest=function(token,startTime,endTime,page,countPerPage,success,ignoreError){
       var request= queryRegisteredUsersRq(true,token,startTime,endTime,page,countPerPage,success,ignoreError);
       return request;
    }
	this.queryRegisteredUsers=function(token,startTime,endTime,page,countPerPage,success,ignoreError){
       var request= queryRegisteredUsersRq(false,token,startTime,endTime,page,countPerPage,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function getSupportUsersRq(union,token,success,ignoreError){
        var request=new JlnRequest();
        request.func='getSupportUsers';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.getSupportUsersRequest=function(token,success,ignoreError){
       var request= getSupportUsersRq(true,token,success,ignoreError);
       return request;
    }
	this.getSupportUsers=function(token,success,ignoreError){
       var request= getSupportUsersRq(false,token,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function getUserByIdRq(union,token,userId,success,ignoreError){
        var request=new JlnRequest();
        request.func='getUserById';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;
		request.params['uid']=userId;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.getUserByIdRequest=function(token,userId,success,ignoreError){
       var request= getUserByIdRq(true,token,userId,success,ignoreError);
       return request;
    }
	this.getUserById=function(token,userId,success,ignoreError){
       var request= getUserByIdRq(false,token,userId,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function getUserDetailRq(union,token,success,ignoreError){
        var request=new JlnRequest();
        request.func='getUserDetail';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.getUserDetailRequest=function(token,success,ignoreError){
       var request= getUserDetailRq(true,token,success,ignoreError);
       return request;
    }
	this.getUserDetail=function(token,success,ignoreError){
       var request= getUserDetailRq(false,token,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function getUserDetailByIdRq(union,token,userId,success,ignoreError){
        var request=new JlnRequest();
        request.func='getUserDetailById';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;
		request.params['uid']=userId;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.getUserDetailByIdRequest=function(token,userId,success,ignoreError){
       var request= getUserDetailByIdRq(true,token,userId,success,ignoreError);
       return request;
    }
	this.getUserDetailById=function(token,userId,success,ignoreError){
       var request= getUserDetailByIdRq(false,token,userId,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function modifyUserDetailRq(union,token,name,IDNumber,education,country,province,city,address,zipCode,investMent,success,ignoreError){
        var request=new JlnRequest();
        request.func='modifyUserDetail';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;
		request.params['n']=name;
		request.params['idn']=IDNumber;
		request.params['e']=education;
		request.params['c']=country;
		request.params['p']=province;
		request.params['c0']=city;
		request.params['a']=address;
		request.params['zc']=zipCode;
		request.params['im']=investMent;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.modifyUserDetailRequest=function(token,name,IDNumber,education,country,province,city,address,zipCode,investMent,success,ignoreError){
       var request= modifyUserDetailRq(true,token,name,IDNumber,education,country,province,city,address,zipCode,investMent,success,ignoreError);
       return request;
    }
	this.modifyUserDetail=function(token,name,IDNumber,education,country,province,city,address,zipCode,investMent,success,ignoreError){
       var request= modifyUserDetailRq(false,token,name,IDNumber,education,country,province,city,address,zipCode,investMent,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function modifyNickNameRq(union,token,nickName,success,ignoreError){
        var request=new JlnRequest();
        request.func='modifyNickName';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;
		request.params['nn']=nickName;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.modifyNickNameRequest=function(token,nickName,success,ignoreError){
       var request= modifyNickNameRq(true,token,nickName,success,ignoreError);
       return request;
    }
	this.modifyNickName=function(token,nickName,success,ignoreError){
       var request= modifyNickNameRq(false,token,nickName,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function modifyPasswordRq(union,token,validCode,password,time,pageToken,success,ignoreError){
        var request=new JlnRequest();
        request.func='modifyPassword';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;
		request.params['validCode']=validCode;
		request.params['p']=password;
		request.params['t']=time;
		request.params['pt']=pageToken;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.modifyPasswordRequest=function(token,validCode,password,time,pageToken,success,ignoreError){
       var request= modifyPasswordRq(true,token,validCode,password,time,pageToken,success,ignoreError);
       return request;
    }
	this.modifyPassword=function(token,validCode,password,time,pageToken,success,ignoreError){
       var request= modifyPasswordRq(false,token,validCode,password,time,pageToken,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function modifyEmailOrPhoneRq(union,token,validCode,phoneNumber,email,time,pageToken,success,ignoreError){
        var request=new JlnRequest();
        request.func='modifyEmailOrPhone';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;
		request.params['validCode']=validCode;
		request.params['phoneNumber']=phoneNumber;
		request.params['e']=email;
		request.params['t']=time;
		request.params['pt']=pageToken;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.modifyEmailOrPhoneRequest=function(token,validCode,phoneNumber,email,time,pageToken,success,ignoreError){
       var request= modifyEmailOrPhoneRq(true,token,validCode,phoneNumber,email,time,pageToken,success,ignoreError);
       return request;
    }
	this.modifyEmailOrPhone=function(token,validCode,phoneNumber,email,time,pageToken,success,ignoreError){
       var request= modifyEmailOrPhoneRq(false,token,validCode,phoneNumber,email,time,pageToken,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function phoneIsExistedRq(union,phoneNumber,success,ignoreError){
        var request=new JlnRequest();
        request.func='phoneIsExisted';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['phoneNumber']=phoneNumber;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.phoneIsExistedRequest=function(phoneNumber,success,ignoreError){
       var request= phoneIsExistedRq(true,phoneNumber,success,ignoreError);
       return request;
    }
	this.phoneIsExisted=function(phoneNumber,success,ignoreError){
       var request= phoneIsExistedRq(false,phoneNumber,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function emailIsExistedRq(union,email,success,ignoreError){
        var request=new JlnRequest();
        request.func='emailIsExisted';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['e']=email;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.emailIsExistedRequest=function(email,success,ignoreError){
       var request= emailIsExistedRq(true,email,success,ignoreError);
       return request;
    }
	this.emailIsExisted=function(email,success,ignoreError){
       var request= emailIsExistedRq(false,email,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function requestSMSValidateRq(union,phoneNumber,success,ignoreError){
        var request=new JlnRequest();
        request.func='requestSMSValidate';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['phoneNumber']=phoneNumber;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.requestSMSValidateRequest=function(phoneNumber,success,ignoreError){
       var request= requestSMSValidateRq(true,phoneNumber,success,ignoreError);
       return request;
    }
	this.requestSMSValidate=function(phoneNumber,success,ignoreError){
       var request= requestSMSValidateRq(false,phoneNumber,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function smsLoginRq(union,phoneNumber,validCode,success,ignoreError){
        var request=new JlnRequest();
        request.func='smsLogin';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['phoneNumber']=phoneNumber;
		request.params['validCode']=validCode;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.smsLoginRequest=function(phoneNumber,validCode,success,ignoreError){
       var request= smsLoginRq(true,phoneNumber,validCode,success,ignoreError);
       return request;
    }
	this.smsLogin=function(phoneNumber,validCode,success,ignoreError){
       var request= smsLoginRq(false,phoneNumber,validCode,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function getIsLoginRq(union,token,success,ignoreError){
        var request=new JlnRequest();
        request.func='getIsLogin';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.getIsLoginRequest=function(token,success,ignoreError){
       var request= getIsLoginRq(true,token,success,ignoreError);
       return request;
    }
	this.getIsLogin=function(token,success,ignoreError){
       var request= getIsLoginRq(false,token,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function logoutRq(union,token,success,ignoreError){
        var request=new JlnRequest();
        request.func='logout';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.logoutRequest=function(token,success,ignoreError){
       var request= logoutRq(true,token,success,ignoreError);
       return request;
    }
	this.logout=function(token,success,ignoreError){
       var request= logoutRq(false,token,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function bindIDCardRq(union,token,idNum,name,success,ignoreError){
        var request=new JlnRequest();
        request.func='bindIDCard';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;
		request.params['in']=idNum;
		request.params['n']=name;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.bindIDCardRequest=function(token,idNum,name,success,ignoreError){
       var request= bindIDCardRq(true,token,idNum,name,success,ignoreError);
       return request;
    }
	this.bindIDCard=function(token,idNum,name,success,ignoreError){
       var request= bindIDCardRq(false,token,idNum,name,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function bindIDCardExRq(union,token,idNum,name,posPic,negPic,handPic,success,ignoreError){
        var request=new JlnRequest();
        request.func='bindIDCardEx';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;
		request.params['in']=idNum;
		request.params['n']=name;
		request.params['pp']=posPic;
		request.params['np']=negPic;
		request.params['hp']=handPic;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.bindIDCardExRequest=function(token,idNum,name,posPic,negPic,handPic,success,ignoreError){
       var request= bindIDCardExRq(true,token,idNum,name,posPic,negPic,handPic,success,ignoreError);
       return request;
    }
	this.bindIDCardEx=function(token,idNum,name,posPic,negPic,handPic,success,ignoreError){
       var request= bindIDCardExRq(false,token,idNum,name,posPic,negPic,handPic,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function bindBankAccountRq(union,token,bankType,bankName,bankAccount,success,ignoreError){
        var request=new JlnRequest();
        request.func='bindBankAccount';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;
		request.params['bt']=bankType;
		request.params['bn']=bankName;
		request.params['ba']=bankAccount;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.bindBankAccountRequest=function(token,bankType,bankName,bankAccount,success,ignoreError){
       var request= bindBankAccountRq(true,token,bankType,bankName,bankAccount,success,ignoreError);
       return request;
    }
	this.bindBankAccount=function(token,bankType,bankName,bankAccount,success,ignoreError){
       var request= bindBankAccountRq(false,token,bankType,bankName,bankAccount,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function validBankMoneyRq(union,token,money,success,ignoreError){
        var request=new JlnRequest();
        request.func='validBankMoney';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;
		request.params['m']=money;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.validBankMoneyRequest=function(token,money,success,ignoreError){
       var request= validBankMoneyRq(true,token,money,success,ignoreError);
       return request;
    }
	this.validBankMoney=function(token,money,success,ignoreError){
       var request= validBankMoneyRq(false,token,money,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function setTradePasswordRq(union,token,validCode,password,success,ignoreError){
        var request=new JlnRequest();
        request.func='setTradePassword';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;
		request.params['validCode']=validCode;
		request.params['p']=password;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.setTradePasswordRequest=function(token,validCode,password,success,ignoreError){
       var request= setTradePasswordRq(true,token,validCode,password,success,ignoreError);
       return request;
    }
	this.setTradePassword=function(token,validCode,password,success,ignoreError){
       var request= setTradePasswordRq(false,token,validCode,password,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function setQuestionsRq(union,token,q1,a1,q2,a2,q3,a3,q4,a4,q5,a5,q6,a6,time,pageToken,success,ignoreError){
        var request=new JlnRequest();
        request.func='setQuestions';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;
		request.params['q']=q1;
		request.params['a']=a1;
		request.params['q0']=q2;
		request.params['a0']=a2;
		request.params['q1']=q3;
		request.params['a1']=a3;
		request.params['q2']=q4;
		request.params['a2']=a4;
		request.params['q3']=q5;
		request.params['a3']=a5;
		request.params['q4']=q6;
		request.params['a4']=a6;
		request.params['t']=time;
		request.params['pt']=pageToken;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.setQuestionsRequest=function(token,q1,a1,q2,a2,q3,a3,q4,a4,q5,a5,q6,a6,time,pageToken,success,ignoreError){
       var request= setQuestionsRq(true,token,q1,a1,q2,a2,q3,a3,q4,a4,q5,a5,q6,a6,time,pageToken,success,ignoreError);
       return request;
    }
	this.setQuestions=function(token,q1,a1,q2,a2,q3,a3,q4,a4,q5,a5,q6,a6,time,pageToken,success,ignoreError){
       var request= setQuestionsRq(false,token,q1,a1,q2,a2,q3,a3,q4,a4,q5,a5,q6,a6,time,pageToken,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function getQuestionIndexsRq(union,token,success,ignoreError){
        var request=new JlnRequest();
        request.func='getQuestionIndexs';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.getQuestionIndexsRequest=function(token,success,ignoreError){
       var request= getQuestionIndexsRq(true,token,success,ignoreError);
       return request;
    }
	this.getQuestionIndexs=function(token,success,ignoreError){
       var request= getQuestionIndexsRq(false,token,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function validateAnswerRq(union,token,index,q,a,success,ignoreError){
        var request=new JlnRequest();
        request.func='validateAnswer';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;
		request.params['i']=index;
		request.params['q']=q;
		request.params['a']=a;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.validateAnswerRequest=function(token,index,q,a,success,ignoreError){
       var request= validateAnswerRq(true,token,index,q,a,success,ignoreError);
       return request;
    }
	this.validateAnswer=function(token,index,q,a,success,ignoreError){
       var request= validateAnswerRq(false,token,index,q,a,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function validateAnswersRq(union,token,q1,a1,q2,a2,q3,a3,q4,a4,q5,a5,q6,a6,success,ignoreError){
        var request=new JlnRequest();
        request.func='validateAnswers';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;
		request.params['q']=q1;
		request.params['a']=a1;
		request.params['q0']=q2;
		request.params['a0']=a2;
		request.params['q1']=q3;
		request.params['a1']=a3;
		request.params['q2']=q4;
		request.params['a2']=a4;
		request.params['q3']=q5;
		request.params['a3']=a5;
		request.params['q4']=q6;
		request.params['a4']=a6;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.validateAnswersRequest=function(token,q1,a1,q2,a2,q3,a3,q4,a4,q5,a5,q6,a6,success,ignoreError){
       var request= validateAnswersRq(true,token,q1,a1,q2,a2,q3,a3,q4,a4,q5,a5,q6,a6,success,ignoreError);
       return request;
    }
	this.validateAnswers=function(token,q1,a1,q2,a2,q3,a3,q4,a4,q5,a5,q6,a6,success,ignoreError){
       var request= validateAnswersRq(false,token,q1,a1,q2,a2,q3,a3,q4,a4,q5,a5,q6,a6,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function validateIDNumberRq(union,token,idNum,success,ignoreError){
        var request=new JlnRequest();
        request.func='validateIDNumber';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;
		request.params['in']=idNum;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.validateIDNumberRequest=function(token,idNum,success,ignoreError){
       var request= validateIDNumberRq(true,token,idNum,success,ignoreError);
       return request;
    }
	this.validateIDNumber=function(token,idNum,success,ignoreError){
       var request= validateIDNumberRq(false,token,idNum,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function validateIdentityRq(union,token,password,idNum,index,q,a,success,ignoreError){
        var request=new JlnRequest();
        request.func='validateIdentity';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;
		request.params['p']=password;
		request.params['in']=idNum;
		request.params['i']=index;
		request.params['q']=q;
		request.params['a']=a;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.validateIdentityRequest=function(token,password,idNum,index,q,a,success,ignoreError){
       var request= validateIdentityRq(true,token,password,idNum,index,q,a,success,ignoreError);
       return request;
    }
	this.validateIdentity=function(token,password,idNum,index,q,a,success,ignoreError){
       var request= validateIdentityRq(false,token,password,idNum,index,q,a,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function isRegisterFinishRq(union,token,success,ignoreError){
        var request=new JlnRequest();
        request.func='isRegisterFinish';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.isRegisterFinishRequest=function(token,success,ignoreError){
       var request= isRegisterFinishRq(true,token,success,ignoreError);
       return request;
    }
	this.isRegisterFinish=function(token,success,ignoreError){
       var request= isRegisterFinishRq(false,token,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function getBindBankRq(union,token,success,ignoreError){
        var request=new JlnRequest();
        request.func='getBindBank';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.getBindBankRequest=function(token,success,ignoreError){
       var request= getBindBankRq(true,token,success,ignoreError);
       return request;
    }
	this.getBindBank=function(token,success,ignoreError){
       var request= getBindBankRq(false,token,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function getAccountRq(union,token,success,ignoreError){
        var request=new JlnRequest();
        request.func='getAccount';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.getAccountRequest=function(token,success,ignoreError){
       var request= getAccountRq(true,token,success,ignoreError);
       return request;
    }
	this.getAccount=function(token,success,ignoreError){
       var request= getAccountRq(false,token,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function getUserSmartInfoRq(union,token,success,ignoreError){
        var request=new JlnRequest();
        request.func='getUserSmartInfo';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.getUserSmartInfoRequest=function(token,success,ignoreError){
       var request= getUserSmartInfoRq(true,token,success,ignoreError);
       return request;
    }
	this.getUserSmartInfo=function(token,success,ignoreError){
       var request= getUserSmartInfoRq(false,token,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function getSupportsRq(union,token,success,ignoreError){
        var request=new JlnRequest();
        request.func='getSupports';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.getSupportsRequest=function(token,success,ignoreError){
       var request= getSupportsRq(true,token,success,ignoreError);
       return request;
    }
	this.getSupports=function(token,success,ignoreError){
       var request= getSupportsRq(false,token,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function createSupportUserRq(union,token,email,password,nickName,phoneNumber,success,ignoreError){
        var request=new JlnRequest();
        request.func='createSupportUser';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;
		request.params['e']=email;
		request.params['p']=password;
		request.params['nn']=nickName;
		request.params['phoneNumber']=phoneNumber;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.createSupportUserRequest=function(token,email,password,nickName,phoneNumber,success,ignoreError){
       var request= createSupportUserRq(true,token,email,password,nickName,phoneNumber,success,ignoreError);
       return request;
    }
	this.createSupportUser=function(token,email,password,nickName,phoneNumber,success,ignoreError){
       var request= createSupportUserRq(false,token,email,password,nickName,phoneNumber,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function createSupportRq(union,token,email,password,nickName,phoneNumber,userGroupIds,success,ignoreError){
        var request=new JlnRequest();
        request.func='createSupport';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;
		request.params['e']=email;
		request.params['p']=password;
		request.params['nn']=nickName;
		request.params['phoneNumber']=phoneNumber;
		request.params['ugi']=userGroupIds;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.createSupportRequest=function(token,email,password,nickName,phoneNumber,userGroupIds,success,ignoreError){
       var request= createSupportRq(true,token,email,password,nickName,phoneNumber,userGroupIds,success,ignoreError);
       return request;
    }
	this.createSupport=function(token,email,password,nickName,phoneNumber,userGroupIds,success,ignoreError){
       var request= createSupportRq(false,token,email,password,nickName,phoneNumber,userGroupIds,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function updateSupportRq(union,token,userId,email,password,nickName,phoneNumber,newUserGroupIds,deleteUserGroupIds,success,ignoreError){
        var request=new JlnRequest();
        request.func='updateSupport';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;
		request.params['uid']=userId;
		request.params['e']=email;
		request.params['p']=password;
		request.params['nn']=nickName;
		request.params['phoneNumber']=phoneNumber;
		request.params['nugi']=newUserGroupIds;
		request.params['dugi']=deleteUserGroupIds;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.updateSupportRequest=function(token,userId,email,password,nickName,phoneNumber,newUserGroupIds,deleteUserGroupIds,success,ignoreError){
       var request= updateSupportRq(true,token,userId,email,password,nickName,phoneNumber,newUserGroupIds,deleteUserGroupIds,success,ignoreError);
       return request;
    }
	this.updateSupport=function(token,userId,email,password,nickName,phoneNumber,newUserGroupIds,deleteUserGroupIds,success,ignoreError){
       var request= updateSupportRq(false,token,userId,email,password,nickName,phoneNumber,newUserGroupIds,deleteUserGroupIds,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function deleteSupportByUserIdRq(union,token,userId,success,ignoreError){
        var request=new JlnRequest();
        request.func='deleteSupportByUserId';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;
		request.params['uid']=userId;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.deleteSupportByUserIdRequest=function(token,userId,success,ignoreError){
       var request= deleteSupportByUserIdRq(true,token,userId,success,ignoreError);
       return request;
    }
	this.deleteSupportByUserId=function(token,userId,success,ignoreError){
       var request= deleteSupportByUserIdRq(false,token,userId,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function getSupportByUserIdRq(union,token,userId,success,ignoreError){
        var request=new JlnRequest();
        request.func='getSupportByUserId';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;
		request.params['uid']=userId;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.getSupportByUserIdRequest=function(token,userId,success,ignoreError){
       var request= getSupportByUserIdRq(true,token,userId,success,ignoreError);
       return request;
    }
	this.getSupportByUserId=function(token,userId,success,ignoreError){
       var request= getSupportByUserIdRq(false,token,userId,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function authorizationRq(union,token,privilegeName,success,ignoreError){
        var request=new JlnRequest();
        request.func='authorization';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;
		request.params['pn']=privilegeName;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.authorizationRequest=function(token,privilegeName,success,ignoreError){
       var request= authorizationRq(true,token,privilegeName,success,ignoreError);
       return request;
    }
	this.authorization=function(token,privilegeName,success,ignoreError){
       var request= authorizationRq(false,token,privilegeName,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function createUserLoginLogRq(union,token,userId,userName,loginTime,ipAddress,success,ignoreError){
        var request=new JlnRequest();
        request.func='createUserLoginLog';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;
		request.params['uid']=userId;
		request.params['un']=userName;
		request.params['lt']=loginTime;
		request.params['ia']=ipAddress;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.createUserLoginLogRequest=function(token,userId,userName,loginTime,ipAddress,success,ignoreError){
       var request= createUserLoginLogRq(true,token,userId,userName,loginTime,ipAddress,success,ignoreError);
       return request;
    }
	this.createUserLoginLog=function(token,userId,userName,loginTime,ipAddress,success,ignoreError){
       var request= createUserLoginLogRq(false,token,userId,userName,loginTime,ipAddress,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function getAllUserLoginLogsRq(union,token,success,ignoreError){
        var request=new JlnRequest();
        request.func='getAllUserLoginLogs';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.getAllUserLoginLogsRequest=function(token,success,ignoreError){
       var request= getAllUserLoginLogsRq(true,token,success,ignoreError);
       return request;
    }
	this.getAllUserLoginLogs=function(token,success,ignoreError){
       var request= getAllUserLoginLogsRq(false,token,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function getUserLoginLogsRq(union,token,userId,startTime,endTime,page,countPerPage,success,ignoreError){
        var request=new JlnRequest();
        request.func='getUserLoginLogs';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;
		request.params['uid']=userId;
		request.params['st']=startTime;
		request.params['et']=endTime;
		request.params['p']=page;
		request.params['cpp']=countPerPage;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.getUserLoginLogsRequest=function(token,userId,startTime,endTime,page,countPerPage,success,ignoreError){
       var request= getUserLoginLogsRq(true,token,userId,startTime,endTime,page,countPerPage,success,ignoreError);
       return request;
    }
	this.getUserLoginLogs=function(token,userId,startTime,endTime,page,countPerPage,success,ignoreError){
       var request= getUserLoginLogsRq(false,token,userId,startTime,endTime,page,countPerPage,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function validateRealNameRq(union,token,realName,cardNo,success,ignoreError){
        var request=new JlnRequest();
        request.func='validateRealName';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;
		request.params['rn']=realName;
		request.params['cn']=cardNo;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.validateRealNameRequest=function(token,realName,cardNo,success,ignoreError){
       var request= validateRealNameRq(true,token,realName,cardNo,success,ignoreError);
       return request;
    }
	this.validateRealName=function(token,realName,cardNo,success,ignoreError){
       var request= validateRealNameRq(false,token,realName,cardNo,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function blindBankCardRq(union,token,realName,IDCard,cardNo,bankCode,phoneNum,validCode,success,ignoreError){
        var request=new JlnRequest();
        request.func='blindBankCard';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;
		request.params['rn']=realName;
		request.params['idc']=IDCard;
		request.params['cn']=cardNo;
		request.params['bc']=bankCode;
		request.params['phoneNum']=phoneNum;
		request.params['validCode']=validCode;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.blindBankCardRequest=function(token,realName,IDCard,cardNo,bankCode,phoneNum,validCode,success,ignoreError){
       var request= blindBankCardRq(true,token,realName,IDCard,cardNo,bankCode,phoneNum,validCode,success,ignoreError);
       return request;
    }
	this.blindBankCard=function(token,realName,IDCard,cardNo,bankCode,phoneNum,validCode,success,ignoreError){
       var request= blindBankCardRq(false,token,realName,IDCard,cardNo,bankCode,phoneNum,validCode,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function getRiskTestTotalScoreRq(union,token,success,ignoreError){
        var request=new JlnRequest();
        request.func='getRiskTestTotalScore';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.getRiskTestTotalScoreRequest=function(token,success,ignoreError){
       var request= getRiskTestTotalScoreRq(true,token,success,ignoreError);
       return request;
    }
	this.getRiskTestTotalScore=function(token,success,ignoreError){
       var request= getRiskTestTotalScoreRq(false,token,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function getRiskTestRecordsRq(union,token,success,ignoreError){
        var request=new JlnRequest();
        request.func='getRiskTestRecords';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.getRiskTestRecordsRequest=function(token,success,ignoreError){
       var request= getRiskTestRecordsRq(true,token,success,ignoreError);
       return request;
    }
	this.getRiskTestRecords=function(token,success,ignoreError){
       var request= getRiskTestRecordsRq(false,token,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function createRiskTestScoreRq(union,token,q1Score,q2Score,q3Score,q4Score,q5Score,q6Score,q7Score,q8Score,q9Score,q10Score,success,ignoreError){
        var request=new JlnRequest();
        request.func='createRiskTestScore';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;
		request.params['s1']=q1Score;
		request.params['s2']=q2Score;
		request.params['s3']=q3Score;
		request.params['s4']=q4Score;
		request.params['s5']=q5Score;
		request.params['s6']=q6Score;
		request.params['s7']=q7Score;
		request.params['s8']=q8Score;
		request.params['s9']=q9Score;
		request.params['s10']=q10Score;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.createRiskTestScoreRequest=function(token,q1Score,q2Score,q3Score,q4Score,q5Score,q6Score,q7Score,q8Score,q9Score,q10Score,success,ignoreError){
       var request= createRiskTestScoreRq(true,token,q1Score,q2Score,q3Score,q4Score,q5Score,q6Score,q7Score,q8Score,q9Score,q10Score,success,ignoreError);
       return request;
    }
	this.createRiskTestScore=function(token,q1Score,q2Score,q3Score,q4Score,q5Score,q6Score,q7Score,q8Score,q9Score,q10Score,success,ignoreError){
       var request= createRiskTestScoreRq(false,token,q1Score,q2Score,q3Score,q4Score,q5Score,q6Score,q7Score,q8Score,q9Score,q10Score,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function deleteRiskTestScoreRq(union,token,success,ignoreError){
        var request=new JlnRequest();
        request.func='deleteRiskTestScore';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.deleteRiskTestScoreRequest=function(token,success,ignoreError){
       var request= deleteRiskTestScoreRq(true,token,success,ignoreError);
       return request;
    }
	this.deleteRiskTestScore=function(token,success,ignoreError){
       var request= deleteRiskTestScoreRq(false,token,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function getDefaultContractReceiveAddressRq(union,userToken,success,ignoreError){
        var request=new JlnRequest();
        request.func='getDefaultContractReceiveAddress';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['userToken']=userToken;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.getDefaultContractReceiveAddressRequest=function(userToken,success,ignoreError){
       var request= getDefaultContractReceiveAddressRq(true,userToken,success,ignoreError);
       return request;
    }
	this.getDefaultContractReceiveAddress=function(userToken,success,ignoreError){
       var request= getDefaultContractReceiveAddressRq(false,userToken,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function getContractReceiveAddressListRq(union,userToken,success,ignoreError){
        var request=new JlnRequest();
        request.func='getContractReceiveAddressList';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['userToken']=userToken;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.getContractReceiveAddressListRequest=function(userToken,success,ignoreError){
       var request= getContractReceiveAddressListRq(true,userToken,success,ignoreError);
       return request;
    }
	this.getContractReceiveAddressList=function(userToken,success,ignoreError){
       var request= getContractReceiveAddressListRq(false,userToken,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function addNewContractReceiveAddressRq(union,userToken,receiver,province,city,address,phoneNum,zipCode,remark,success,ignoreError){
        var request=new JlnRequest();
        request.func='addNewContractReceiveAddress';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['userToken']=userToken;
		request.params['r0']=receiver;
		request.params['p']=province;
		request.params['c']=city;
		request.params['a']=address;
		request.params['phoneNum']=phoneNum;
		request.params['zc']=zipCode;
		request.params['r']=remark;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.addNewContractReceiveAddressRequest=function(userToken,receiver,province,city,address,phoneNum,zipCode,remark,success,ignoreError){
       var request= addNewContractReceiveAddressRq(true,userToken,receiver,province,city,address,phoneNum,zipCode,remark,success,ignoreError);
       return request;
    }
	this.addNewContractReceiveAddress=function(userToken,receiver,province,city,address,phoneNum,zipCode,remark,success,ignoreError){
       var request= addNewContractReceiveAddressRq(false,userToken,receiver,province,city,address,phoneNum,zipCode,remark,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function setContractReceiveAddressIsDefaultRq(union,userToken,contractReceiveAddressId,success,ignoreError){
        var request=new JlnRequest();
        request.func='setContractReceiveAddressIsDefault';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['userToken']=userToken;
		request.params['craid']=contractReceiveAddressId;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.setContractReceiveAddressIsDefaultRequest=function(userToken,contractReceiveAddressId,success,ignoreError){
       var request= setContractReceiveAddressIsDefaultRq(true,userToken,contractReceiveAddressId,success,ignoreError);
       return request;
    }
	this.setContractReceiveAddressIsDefault=function(userToken,contractReceiveAddressId,success,ignoreError){
       var request= setContractReceiveAddressIsDefaultRq(false,userToken,contractReceiveAddressId,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function editContractReceiveAddressRq(union,userToken,contractReceiveAddressId,receiver,province,city,address,phoneNum,zipCode,remark,success,ignoreError){
        var request=new JlnRequest();
        request.func='editContractReceiveAddress';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['userToken']=userToken;
		request.params['craid']=contractReceiveAddressId;
		request.params['r0']=receiver;
		request.params['p']=province;
		request.params['c']=city;
		request.params['a']=address;
		request.params['phoneNum']=phoneNum;
		request.params['zc']=zipCode;
		request.params['r']=remark;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.editContractReceiveAddressRequest=function(userToken,contractReceiveAddressId,receiver,province,city,address,phoneNum,zipCode,remark,success,ignoreError){
       var request= editContractReceiveAddressRq(true,userToken,contractReceiveAddressId,receiver,province,city,address,phoneNum,zipCode,remark,success,ignoreError);
       return request;
    }
	this.editContractReceiveAddress=function(userToken,contractReceiveAddressId,receiver,province,city,address,phoneNum,zipCode,remark,success,ignoreError){
       var request= editContractReceiveAddressRq(false,userToken,contractReceiveAddressId,receiver,province,city,address,phoneNum,zipCode,remark,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function deleteContractReceiveAddressRq(union,userToken,contractReceiveAddressId,success,ignoreError){
        var request=new JlnRequest();
        request.func='deleteContractReceiveAddress';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['userToken']=userToken;
		request.params['craid']=contractReceiveAddressId;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.deleteContractReceiveAddressRequest=function(userToken,contractReceiveAddressId,success,ignoreError){
       var request= deleteContractReceiveAddressRq(true,userToken,contractReceiveAddressId,success,ignoreError);
       return request;
    }
	this.deleteContractReceiveAddress=function(userToken,contractReceiveAddressId,success,ignoreError){
       var request= deleteContractReceiveAddressRq(false,userToken,contractReceiveAddressId,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function getPageTokenRq(union,userToken,success,ignoreError){
        var request=new JlnRequest();
        request.func='getPageToken';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['userToken']=userToken;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.getPageTokenRequest=function(userToken,success,ignoreError){
       var request= getPageTokenRq(true,userToken,success,ignoreError);
       return request;
    }
	this.getPageToken=function(userToken,success,ignoreError){
       var request= getPageTokenRq(false,userToken,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function modifyPasswordByOriRq(union,token,validCode,password,oriPassword,success,ignoreError){
        var request=new JlnRequest();
        request.func='modifyPasswordByOri';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['token']=token;
		request.params['vc']=validCode;
		request.params['p']=password;
		request.params['op']=oriPassword;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.modifyPasswordByOriRequest=function(token,validCode,password,oriPassword,success,ignoreError){
       var request= modifyPasswordByOriRq(true,token,validCode,password,oriPassword,success,ignoreError);
       return request;
    }
	this.modifyPasswordByOri=function(token,validCode,password,oriPassword,success,ignoreError){
       var request= modifyPasswordByOriRq(false,token,validCode,password,oriPassword,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function validateInfoForModifyPhoneRq(union,userToken,password,idcard,qIndex,question,answer,success,ignoreError){
        var request=new JlnRequest();
        request.func='validateInfoForModifyPhone';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['userToken']=userToken;
		request.params['p']=password;
		request.params['i']=idcard;
		request.params['qi']=qIndex;
		request.params['q']=question;
		request.params['a']=answer;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.validateInfoForModifyPhoneRequest=function(userToken,password,idcard,qIndex,question,answer,success,ignoreError){
       var request= validateInfoForModifyPhoneRq(true,userToken,password,idcard,qIndex,question,answer,success,ignoreError);
       return request;
    }
	this.validateInfoForModifyPhone=function(userToken,password,idcard,qIndex,question,answer,success,ignoreError){
       var request= validateInfoForModifyPhoneRq(false,userToken,password,idcard,qIndex,question,answer,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function sendEmailValidCodeRq(union,userToken,phoneNum,validCode,email,success,ignoreError){
        var request=new JlnRequest();
        request.func='sendEmailValidCode';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['userToken']=userToken;
		request.params['phoneNum']=phoneNum;
		request.params['vc']=validCode;
		request.params['e']=email;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.sendEmailValidCodeRequest=function(userToken,phoneNum,validCode,email,success,ignoreError){
       var request= sendEmailValidCodeRq(true,userToken,phoneNum,validCode,email,success,ignoreError);
       return request;
    }
	this.sendEmailValidCode=function(userToken,phoneNum,validCode,email,success,ignoreError){
       var request= sendEmailValidCodeRq(false,userToken,phoneNum,validCode,email,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function blindEmailRq(union,userToken,validCode,email,success,ignoreError){
        var request=new JlnRequest();
        request.func='blindEmail';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['userToken']=userToken;
		request.params['vc']=validCode;
		request.params['e']=email;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.blindEmailRequest=function(userToken,validCode,email,success,ignoreError){
       var request= blindEmailRq(true,userToken,validCode,email,success,ignoreError);
       return request;
    }
	this.blindEmail=function(userToken,validCode,email,success,ignoreError){
       var request= blindEmailRq(false,userToken,validCode,email,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function getUserByPhoneRq(union,phone,pageToken,success,ignoreError){
        var request=new JlnRequest();
        request.func='getUserByPhone';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['p']=phone;
		request.params['pt']=pageToken;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.getUserByPhoneRequest=function(phone,pageToken,success,ignoreError){
       var request= getUserByPhoneRq(true,phone,pageToken,success,ignoreError);
       return request;
    }
	this.getUserByPhone=function(phone,pageToken,success,ignoreError){
       var request= getUserByPhoneRq(false,phone,pageToken,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function getUserDetailByPhoneRq(union,phone,pageToken,success,ignoreError){
        var request=new JlnRequest();
        request.func='getUserDetailByPhone';
        request.token = Base.localStorage.getItem('request_token');
		
		request.params['p']=phone;
		request.params['pt']=pageToken;

		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.getUserDetailByPhoneRequest=function(phone,pageToken,success,ignoreError){
       var request= getUserDetailByPhoneRq(true,phone,pageToken,success,ignoreError);
       return request;
    }
	this.getUserDetailByPhone=function(phone,pageToken,success,ignoreError){
       var request= getUserDetailByPhoneRq(false,phone,pageToken,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }

	function getUniteConfigMapRq(union,success,ignoreError){
        var request=new JlnRequest();
        request.func='getUniteConfigMap';
        request.token = Base.localStorage.getItem('request_token');
		
		if (union == true) {
	        request.svr = 'user';
            request.ignoreError = ignoreError;
	        request.success = success;
        }
	    return request;
    }
	this.getUniteConfigMapRequest=function(success,ignoreError){
       var request= getUniteConfigMapRq(true,success,ignoreError);
       return request;
    }
	this.getUniteConfigMap=function(success,ignoreError){
       var request= getUniteConfigMapRq(false,success,ignoreError);
       userSubmit(request, success, ignoreError);

    }
}

});
